// import Vue from 'vue'
// import VueRouter from 'vue-router'
// Vue.use(VueRouter)

// import Home from '../views/Home'


// let routes = [{
//     path: '/',
//     redirect: '/home'
// }, {
//     path: '/home',
//     component: Home
// }, {
//     path: '/news',
//     component: () =>
//         import ('../views/News'),
//     children: [{
//             path: '/news',
//             redirect: '/news/child'
//         },
//         {
//             path: 'child',
//             component: () =>
//                 import ('../views/Child')
//         }
//     ]
// }]
// const router = new VueRouter({
//     routes
// })
// export default router



import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)
import Home from '../views/Home'
let routes = [{
    path: '/',
    redirect: '/home'
}, {
    path: '/home',
    component: Home
}, {
    path: '/news',
    component: () =>
        import ('../views/News')
}]
let router = new VueRouter({
    routes
})
export default router